<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String cid=request.getParameter("cid");
String type=request.getParameter("type");
String menuName="信息管理";
	if(cid.equals("1")){menuName="集团考勤";}
	if(cid.equals("2")){menuName="党群管理类";}
	if(cid.equals("3")){menuName="行政管理类";}
	if(cid.equals("4")){menuName="经营管理类";}
	if(cid.equals("5")){menuName="生产管理类";}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>天津市粮油集团有限公司 OA办公自动化协作平台</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

    <link href="<%=basePath %>efile/style/css.css" rel="stylesheet" type="text/css" />
    <link href="<%=basePath %>ajaxFramework/ext/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext/ext-base.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext/ext-all.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/init.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext/ux/ux-all.js"></script>	
<script type="text/javascript" src="<%=basePath %>ajaxFramework/jQuery/jquery.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/jQuery/jquery.form.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext/extension/window/window.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/global/validator.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/global/pageControl.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/fileUpload/ajaxfileupload.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/fileUpload/ajaxFileZx.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/system/selectusertreecheck.js"></script>
	<script type="text/javascript" src="<%=basePath%>FCKeditor/fckeditor.js"></script>
	<style>
	#uploadList li {
			float:  left;
			margin-right:  10px;
			width: 100%
		}
	</style>
<script type="text/javascript">
var deleteFile;
var alreadyUploadFile='';
var uploadUrl='<%=basePath %>tjsinfo/tjsoa/system/ajaxFileUpload.do?method=uploader';
var deteleFileUrl='<%=basePath %>tjsinfo/tjsoa/system/ajaxFileUpload.do?method=deleted';
		function a(){
			alert(document.forms[0].FILE1.value);
			var f=""+document.forms[0].FILE1.value;
			document.forms[0].TEST.value=f;
		}
	function isEmpty(str){
		if(str==null || str.length==0) return true;
		else 
		return false;
	}
		function b(){
			//if(isEmpty(document.getElementById("uploadFile").value) ){ 
			//   alert("选择上传文件！");
			//   document.getElementById("uploadFile").focus(); 
			//   return false;
		//	}
			// var Check = /^\b.*\.xls$/;
			// if(document.forms[0].TEST.value == ''){
				// alert('请上传文件');
			// }else{
		//	ajaxFileUpload();
		//	alert("1");
			document.file.submit();
			// }
		}
	
		</script>  </head>
  
  <body>
	<div id="basic" style="text-align:center;margin-left:20%;">
<div id="index_title">
<div id="index_title">
<ul>
	<li class="over"><a href="#"><span><%=menuName %>上传</span></a></li>
</ul>
</div>
<form name="file" action="<%=basePath %>tjsinfo/tjsoa/efile/FileManageUploadSave.do?cid=<%=cid %>&type=<%=type %>" method="post" >
<table border="0" cellspacing="0" class="note_ad">
	<tr>
		<td><img src="<%=basePath %>efile/images/tab_bg01.gif" width="426" height="14" /></td>
	</tr>
	<tr>
		<td background="<%=basePath %>efile/images/tab_bg02.gif">
		
			
			<input type="hidden" name="TEST" />
			<input type="hidden" name="DeleteTable" id="DeleteTable" value="true" />
			<input type="hidden" name="cid" id="cid" value="<%=cid %>" />
		<table width="90%" border="0" align="center" cellpadding="4" style="overflow: scroll">
			<tr style="overflow-y:scroll;">
				<td height="30">请选择上传文件： 
					<span><input type="file"  name="uploadFile" id="uploadFile" /></span>
					<span><a style="cursor: hand" onclick="ajaxFileUpload();"><img src="<%=basePath %>images/scicon.gif" style="margin-bottom:2px"/></a></span>
					<div class="sc_listLong" style="overflow-y:auto;height: 300px; "><ul id="uploadList" ></ul></div>
	                
				</td>
			</tr>
			<tr>
				<td>
				<hr />
				</td>
			</tr>
			<tr>
				<td height="50">
				<div align="center">
				<a style="cursor: hand" onclick="b();">
				<img src="<%=basePath %>efile/images/queding.gif" width="72" height="17" border="0" /></a>
				<a href="<%=basePath %>tjsinfo/tjsoa/efile/efileList.do?cid=<%=cid %>&type=<%=type %>">
				<img src="<%=basePath %>efile/images/fanhui.gif" width="72" height="17" border="0" /></a>
				</div>
				</td>
			</tr>
			</table>
			
		
		</td>
	</tr>
	<td height="14"><img src="<%=basePath %>efile/images/tab_bg03.gif" width="426" height="14" /></td>
</table>
 <div id="files" style="display: none;"></div>
</form>
<div class="clear"></div>
</div>
</div>


	</body>
</html>
